package com.ad_hccm.service.impl.DiseaseHistory;

import com.ad_hccm.dao.DiseaseHistory.ADFamilyHistoryDao;
import com.ad_hccm.domain.DiseaseHistory.ADFamilyHistory;
import com.ad_hccm.service.DiseaseHistory.ADFamilyHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO AD家族史ServiceImpl
 */
@Service
public class ADFamilyHistoryServiceImpl implements ADFamilyHistoryService {
    @Autowired
    private ADFamilyHistoryDao adFamilyHistoryDao;

    @Override
    public boolean save(ADFamilyHistory adFamilyHistory) {
        return adFamilyHistoryDao.save(adFamilyHistory);
    }

    @Override
    public boolean update(ADFamilyHistory adFamilyHistory) {
        return adFamilyHistoryDao.update(adFamilyHistory);
    }

    @Override
    public ADFamilyHistory getById(String id) {
        return adFamilyHistoryDao.getById(id);
    }

    @Override
    public List<ADFamilyHistory> getAll() {
        return adFamilyHistoryDao.getAll();
    }
}
